From: Ian Campbell Date: Mon, 18 Oct 2010 16:39:44 +0000 (+0100) Subject: libxc: do not lock VCPU context in xc_ia64_pv_recv_vcpu_context X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11381 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=170b70b7ef0132b93eb648010cd3ecabeae63e1a;p=xen.git libxc: do not lock VCPU context in xc_ia64_pv_recv_vcpu_context xc_ia64_pv_recv_vcpu_context does not need to lock the ctxt buffer since it calls xc_ia64_recv_vcpu_context which calls xc_vcpu_setcontext which takes care of any necessary bouncing. Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- diff --git a/tools/libxc/ia64/xc_ia64_linux_restore.c b/tools/libxc/ia64/xc_ia64_linux_restore.c index 7febef291f..b4e9e9c433 100644 --- a/tools/libxc/ia64/xc_ia64_linux_restore.c +++ b/tools/libxc/ia64/xc_ia64_linux_restore.c @@ -246,12 +246,6 @@ xc_ia64_pv_recv_vcpu_context(xc_interface *xch, int io_fd, int32_t dom, vcpu_guest_context_any_t ctxt_any; vcpu_guest_context_t *ctxt = &ctxt_any.c; - if (lock_pages(&ctxt_any, sizeof(ctxt_any))) { - /* needed for build domctl, but might as well do early */ - ERROR("Unable to lock_pages ctxt"); - return -1; - } - if (xc_ia64_recv_vcpu_context(xch, io_fd, dom, vcpu, &ctxt_any)) goto out; @@ -264,7 +258,6 @@ xc_ia64_pv_recv_vcpu_context(xc_interface *xch, int io_fd, int32_t dom, rc = 0; out: - unlock_pages(&ctxt, sizeof(ctxt)); return rc; }